package designPattern.creation.abstractfactorypattern.factoryimpl;

import designPattern.creation.abstractfactorypattern.AbstractFactory;
import designPattern.creation.abstractfactorypattern.Aircondition;
import designPattern.creation.abstractfactorypattern.Engine;
import designPattern.creation.abstractfactorypattern.airconditionimpl.AirconditionB;
import designPattern.creation.abstractfactorypattern.engineimpl.EngineB;

/**
 * @author 张琪
 * @date 2023/1/29 15:19
 */
public class FactoryBMW523 implements AbstractFactory {
    @Override
    public Engine createEngine() {
        return new EngineB();
    }

    @Override
    public Aircondition createAircondition() {
        return new AirconditionB();
    }
}
